package com.sqfw.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sqfw.framework.aspectj.lang.annotation.Excel;
import com.sqfw.framework.web.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 国密签名数据对象 sys_bss_sign
 * 
 * @author tangxt
 * @date 2023-10-17
 */
@Data
public class SysBssSign  implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 关联id */
    private String correlationId;

    /** 数据类型（登录日志，工单手机号，） */
    private String dataType;

    /** 签名数据/加密数据 */
    private String originData;

    /** 签名字符串(64位加密)*/
    private String b64OriginData;

    /** 证书别名/加密随机数 */
    private String certAlias;

    /** 签名后的字符串/加密后的字符串 */
    private String b64SignedData;

    /** 签名证书编码 */
    private String b64Cert;

    /** 签名数据是否修改过：0:没有修改过；1：修改过 */
    private Integer isUpdate;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public SysBssSign() {
    }

    public SysBssSign(String correlationId, String dataType, String originData, String b64OriginData, String certAlias, String b64SignedData, String b64Cert) {
        this.correlationId = correlationId;
        this.dataType = dataType;
        this.originData = originData;
        this.b64OriginData = b64OriginData;
        this.certAlias = certAlias;
        this.b64SignedData = b64SignedData;
        this.b64Cert = b64Cert;
    }


}
